import request from '@/utils/request';

/**
 * 分页查询学生就业信息
 *
 * @param {Object} params 查询条件
 * @returns {Promise}
 */
export function listStudentEmployments(params) {
  return request({
    url: '/api/studentEmployment/getPage',
    method: 'get',
    params: params
  });
}

/**
 * 获取单个学生就业详情
 *
 * @param {number} id 学生ID
 * @returns {Promise}
 */
export function getStudentEmploymentById(id) {
  return request({
    url: `/api/studentEmployment/${id}`,
    method: 'get'
  });
}

/**
 * 保存或更新学生就业信息
 *
 * @param {Object} studentEmployment 学生就业情况对象
 * @returns {Promise}
 */
export function saveOrUpdateStudentEmployment(studentEmployment) {
  return request({
    url: '/api/studentEmployment',
    method: 'post',
    data: studentEmployment
  });
}

/**
 * 删除学生就业信息
 *
 * @param {number} id 就业情况ID
 * @returns {Promise}
 */
export function deleteStudentEmployment(id) {
  return request({
    url: `/api/studentEmployment/${id}`,
    method: 'delete'
  });
}



